package com.chunayev.numerology.domain;

import com.chunayev.numerology.util.db.DBConstants;
import com.sleepycat.persist.model.Entity;
import com.sleepycat.persist.model.PrimaryKey;

/**
 * @author Sergey Chunayev
 */
@Entity
public class Plan extends BaseEntity {
    
    /**
     * 
     */
    private static final long serialVersionUID = -3932946395239761426L;
    
    @PrimaryKey(sequence = DBConstants.PlanSequence)
    private long id;
    
    /**
     * @return the id
     */
    public long getId() {
        return this.id;
    }
    
    /**
     * @param id
     *            the id to set
     */
    public void setId(final long id) {
        this.id = id;
    }
    
    /*
     * (non-Javadoc)
     */
    @Override
    public String toString() {
        return String.format("%d: %s", id, super.toString());
    }
}
